<template>
  <div class="box">
    <img class="view" :src="params.url" alt="">
    <el-icon name="close" :size="24" style="color:#fff;cursor:pointer;vertical-align:top;" @click="closeWin">关闭</el-icon>
  </div>
</template>

<script>
export default {
    props:{
        params:{type:Object,required:true}
    },
    methods:{
        closeWin(){
            this.$emit('close')
        }
    },
}
</script>

<style lang="scss" scoped>
.box{
    border-color: white;
    border-width: 5px;
    border-radius: 5px;
}
.view{
    width:200px;
    height:200px;
}
</style>
